package com.openbravo.pos.scripting;

public class ScriptFactory
{
  public static final String VELOCITY = "velocity";
  public static final String BEANSHELL = "beanshell";
  public static final String RHINO = "rhino";

  public static ScriptEngine getScriptEngine(String paramString)
    throws ScriptException
  {
    if ("velocity".equals(paramString))
      return new ScriptEngineVelocity();
    if ("beanshell".equals(paramString))
      return new ScriptEngineBeanshell();
    throw new ScriptException("Script engine not found: " + paramString);
  }
}

/* Location:           D:\PowerFulPOS-2.30.2\openbravopos.jar
 * Qualified Name:     com.openbravo.pos.scripting.ScriptFactory
 * JD-Core Version:    0.6.0
 */